package cn.edu.lingnan.mapper;

import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

public class ScoreMapperMysqlImpl extends SqlSessionDaoSupport implements ScoreMapper{
    @Override
    public List<String> selectCidFromScoreBySid(String sid) {
        return getSqlSession().getMapper(ScoreMapper.class).selectCidFromScoreBySid(sid);
    }

    @Override
    public int selectNumberFromScoreByCid(String cid) {
        return getSqlSession().getMapper(ScoreMapper.class).selectNumberFromScoreByCid(cid);
    }

    @Override
    public void deleteScoreBySid(String sid) {
        getSqlSession().getMapper(ScoreMapper.class).deleteScoreBySid(sid);
    }
}
